<?php

namespace app\api\controller;

use app\services\GoodsCategoryService;
use app\services\GoodsService;
use plugin\admin\app\model\GoodsCategory;
use support\Request;

class GoodsCategoryController
{
    public function list(Request $request)
    {
        try {
            return ok_rsp('成功', GoodsCategoryService::list());
        } catch (\Exception $e) {
            return err_rsp($e->getMessage());
        }
    }
}